<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新浪微博用户年龄分布图</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>

</head>
<body>
    <div id="e5b8d58ea8174ba9866bb9686f1f2b03" style="width:100%; height:600px;"></div>
    <script>
        var chart_e5b8d58ea8174ba9866bb9686f1f2b03 = echarts.init(
            document.getElementById('e5b8d58ea8174ba9866bb9686f1f2b03'), 'white', {renderer: 'canvas'});
        var option_e5b8d58ea8174ba9866bb9686f1f2b03 = {
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "pie",
            "name": "\u65b0\u6d6a\u5fae\u535a\u7528\u6237\u5e74\u9f84\u5206\u5e03\u56fe",
            "clockwise": true,
            "data": [
                {
                    "name": "1960 - 1969",
                    "value": 288
                },
                {
                    "name": "1970 - 1979",
                    "value": 974
                },
                {
                    "name": "1980 - 1989",
                    "value": 5694
                },
                {
                    "name": "1990 - 1999",
                    "value": 13230
                },
                {
                    "name": "2000 - 2009",
                    "value": 4018
                },
                {
                    "name": "2010 - 2019",
                    "value": 1522
                },
                {
                    "name": "Other",
                    "value": 5927
                }
            ],
            "radius": [
                "25%",
                "60%"
            ],
            "center": [
                "50%",
                "50%"
            ],
            "label": {
                "show": true,
                "position": "top",
                "margin": 8,
                "formatter": "{b}\uff1a{c}\uff08{d} %\uff09"
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
            "data": [
                "1960 - 1969",
                "1970 - 1979",
                "1980 - 1989",
                "1990 - 1999",
                "2000 - 2009",
                "2010 - 2019",
                "Other"
            ],
            "selected": {},
            "show": true
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "title": [
        {
            "text": "\u65b0\u6d6a\u5fae\u535a\u7528\u6237\u5e74\u9f84\u5206\u5e03\u56fe"
        }
    ],
    "toolbox": {
        "show": true,
        "orient": "horizontal",
        "itemSize": 15,
        "itemGap": 10,
        "left": "80%",
        "feature": {
            "saveAsImage": {
                "show": true,
                "title": "save as image",
                "type": "png"
            },
            "restore": {
                "show": true,
                "title": "restore"
            },
            "dataView": {
                "show": true,
                "title": "data view",
                "readOnly": false
            },
            "dataZoom": {
                "show": true,
                "title": {
                    "zoom": "data zoom",
                    "back": "data zoom restore"
                }
            }
        }
    }
};
        chart_e5b8d58ea8174ba9866bb9686f1f2b03.setOption(option_e5b8d58ea8174ba9866bb9686f1f2b03);
    </script>
</body>
</html>
